/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package homeworkDemo02;

/**
 *
 * @author Administrator
 */
public class FaxSalary {
    

    public double getSalary AfterFax(double baseSalary){

        
        double Salary=baseSalary-2000;
        double fax=0;
            if (Salary>=100000) {
                fax=Salary*0.45-15375;
            }
         
            else if (Salary >= 80000) {
                  fax=Salary*0.40-1037;
                    
                }
            
            else if (Salary >= 60000) {
                  fax=Salary*0.35-637;
                    
                }
            
            else if (Salary >= 40000) {
                  fax=Salary*0.3-337;
                    
                }
            
            else if (Salary >= 20000) {
                  fax=Salary*0.2-1375;
                    
                }
            else if (Salary >= 5000) {
                  fax=Salary*0.20-375;
                    
                }
            else if (Salary >= 2000) {
                  fax=Salary*0.15-125;
                    
                }
            else if (Salary >= 500) {
                  fax=Salary*0.10-25;
                    
                }
            else  {
                  fax=Salary*0.05-0;
                  return baseSalary-fax;

    public double getGetSalary() {
        return getSalary;
    }
                  public static void main(String[] args) {
        double base=100000;
         System.out.println(base+"工资对应的税后工资是"+getSalary AfterFax（base);
    }
                    
                }
            }
            {
                
            }
                
            }
        
        

    
}
